let nav = document.querySelector(".nav");
let title = document.querySelector(".title");
let a = document.querySelectorAll("a");
console.log(nav.offsetHeight);



window.addEventListener("scroll", (e) => {
	if (nav.offsetHeight < window.scrollY) {
        nav.classList.add('active')
	} else {
        nav.classList.remove("active");
	}
});
